package com.chinasoft.ms.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author peter
 * @since 2024-10-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
public class RentalRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 租赁ID
     */
    private Long rentalId;

    /**
     * 车辆ID
     */
    private Long carId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 租赁开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date rentalStart;

    /**
     * 租赁结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date rentalEnd;

    /**
     * 0：未归还 1：已归还
     */
    private String status;

    /**
     * 此车被租赁次数
     */
    private Integer rentalCount;


}
